<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>

<%@ page import="fr.mywiki.view.web.struts.form.ErrorMessageForm" %>

<script>
<!--
function createNewEntry() {
	document.forms["searchEntryForm"].method.value='createNewEntry';
	document.forms["searchEntryForm"].submit();
}
-->
</script>

<div id="searchTool">
	<html:form action="searchEntry">
		<html:hidden property="method" value="validate" />
		
		<p><bean:message key="search.title"/></p>
		
		<p>
			<html:text property="searchString" name="searchEntryForm" />
			<a href="javascript:document.forms['searchEntryForm'].submit();">
				<bean:message key="search.go"/>
			</a>
		</p>
		
		<%ErrorMessageForm errorForm = (ErrorMessageForm) session.getAttribute("searchEntryForm"); %>
		<%@include file="./error.jsp"%>
		
		<p>
			<a href="javascript:createNewEntry();">
				<bean:message key="entry.create"/>
			</a>
		</p>
	</html:form>
</div>
